<?php
use think\facade\Route;

$adminMiddleware = config('thinkAdmin.routeMiddleware', []);
Route::group('admin', function () {
    Route::rule(':action/:method', 'admin.:action/:method', 'GET|POST');
    Route::rule(':action', 'admin.:action/index', 'GET|POST');
})->middleware($adminMiddleware);
